
<?php
	$count = 0;
	echo "<ul id='container-answers-$question_id'>";
	foreach ($answers as $value) {
		$count++;
		$answer_divId = 'answer-divId'.$value['Answer']['id'];
		echo "<li id='$answer_divId'></li>";
		echo $this->Javascript->codeBlock($this->Ajax->remoteFunction( 
			 array( 
				'url' => array( 'controller' => 'answers', 'action' => 'Show', $value['Answer']['id'], $count ), 
				'update' => $answer_divId,
				) 
			)); 
	} 
	echo "</ul>";
?>
